axios.defaults.baseURL = 'http://www.liulongbin.top:3008'


// 声明请求拦截器
axios.interceptors.request.use(config => {
  // Do something before request is sent
    if (config.url.indexOf('/my') !== -1) {
    config.headers.Authorization=localStorage.getItem('token')
    }
    return config
  },error => {
  // Do something with request error
  return Promise.reject(error);
  });